//
//  TestCell.m
//  cell
//
//  Created by Sich on 16/11/28.
//  Copyright © 2016年 sicuihuan. All rights reserved.
//

#import "TestCell.h"
#import "Masonry.h"

@implementation TestCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = [UIColor purpleColor];
        [self setUI];
        
    }
    return self;
}

- (void)setUI{
    _nameLab = [[UILabel alloc] init];
    _nameLab.backgroundColor = [UIColor yellowColor];
    _nameLab.text = @"sdvdsfvifivdhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhlllllllllllllvgjvgkvgjvgvhkvkhgvhgvhgvhgvhgvhgvhgkvhgvhgvdsfvifivdjsvjfsejvfvjufdsfvifivdjsvjfsejvfvjufdsfvifivdjsvjfsejvfvjufjsvjfsejvfvjufsvfrv";
    _nameLab.numberOfLines = 0;
    [self.contentView addSubview:_nameLab];
    
    [_nameLab mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.equalTo(self.contentView.mas_left).offset(0);
        make.top.equalTo(self.contentView.mas_top).offset(0);
        make.width.equalTo(@(300));
        make.bottom.equalTo(self.contentView.mas_bottom);
    }];
    
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
